import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import VueLazyload from 'vue-lazyload'


Vue.config.productionTip = false

Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '',
  loading: '',
  attempt: 1
})


// var domainCross = ['show.liluo.cc', 'show.thisummer.com']

router.beforeEach((to, from, next)=>{

  store.commit('nowStatus', 'loading')

  next();

})

// router.afterEach((to, from, next)=>{
//   store.commit('nowStatus', 'end')

//   setTimeout(()=>{
//     store.commit('nowStatus', 'hide')
//   }, 900)

//   setTimeout(()=>{
//     store.commit('nowStatus', 'normal')
//   }, 1000)

// })

Vue.config.productionTip = false
document.addEventListener("touchstart", function(){}, true)


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')





